﻿using System;

namespace HotelRegistrationSystem.Models
{
    public class PaymentModel
    {
        public PaymentModel()
        {
            this.ReservationId = 0;
            this.Amount = 0;
        }
        public PaymentModel(int reservationId, decimal amount)
        {
            this.ReservationId = reservationId;
            this.Amount = amount;
        }

        public PaymentModel(int reservationId, string amount)
        {
            this.ReservationId = reservationId;
            this.Amount = Decimal.Parse(amount);
        }

        public int ReservationId { get; set; }

        public decimal Amount { get; set; }
    }
}
